Google Calendarで予定を作成するURL
リンクを踏むと、そのユーザの予定作成画面に各項目が入力済みの状態で遷移する。
https://www.google.com/calendar/render?action=TEMPLATE&text=Your+Event+Name&dates=20140127T224000Z/20140320T221500Z&details=For+details,+link+here:+http://www.example.com&location=Waldorf+Astoria,+301+Park+Ave+,+New+York,+NY+10022&sf=true&output=xml
Get params、勿論 URI エンコードすること
text
予定のタイトル
dates
開始と終了の日時を、ISO 8601 のミリ秒無し・記号無しで記述する
2021年7月12日21時11分28秒 → 20210712T211128Z
/ で開始と終了の記述を区切る
details
予定の詳細を記述する
URI Encode されているなら、改行なりURLの記述なり自由にできる
location
予定が行われる場所を記述する
URL を入れるとちゃんとリンクにしてくれたりする
参考
https://stackoverflow.com/questions/10488831/link-to-add-to-google-calendar
#Google #Google_Calendar
#API